package com.scpii.universal.hibernate.entity;

import java.lang.Integer;

import com.scpii.universal.util.DateAndString;

/**
 * CommentTabId entity. @author MyEclipse Persistence Tools
 */

public class CommentTab implements java.io.Serializable {

	// Fields

	private Integer intUserId;
	private Integer intContentId;
	private Integer intCommentId;
	private String varCommentName;
	private String varCommentContent;
	private String datCommentDatetime;
	private Integer intDeleteSign;
	private String datUpdateDatetime;

	public CommentTab() {
	}

	public Integer getIntUserId() {
		return this.intUserId;
	}

	public void setIntUserId(Integer intUserId) {
		this.intUserId = intUserId;
	}

	public Integer getIntContentId() {
		return this.intContentId;
	}

	public void setIntContentId(Integer intContentId) {
		this.intContentId = intContentId;
	}

	public Integer getIntCommentId() {
		return this.intCommentId;
	}

	public void setIntCommentId(Integer intCommentId) {
		this.intCommentId = intCommentId;
	}

	public String getVarCommentName() {
		return DateAndString.nullControl(this.varCommentName);
	}

	public void setVarCommentName(String varCommentName) {
		this.varCommentName = varCommentName;
	}

	public String getVarCommentContent() {
		return DateAndString.nullControl(this.varCommentContent);
	}

	public void setVarCommentContent(String varCommentContent) {
		this.varCommentContent = varCommentContent;
	}

	public String getDatCommentDatetime() {
		return DateAndString.nullControl(this.datCommentDatetime);
	}

	public void setDatCommentDatetime(String datCommentDatetime) {
		this.datCommentDatetime = datCommentDatetime;
	}

	public Integer getIntDeleteSign() {
		return this.intDeleteSign;
	}

	public void setIntDeleteSign(Integer intDeleteSign) {
		this.intDeleteSign = intDeleteSign;
	}

	public String getDatUpdateDatetime() {
		return DateAndString.nullControl(this.datUpdateDatetime);
	}

	public void setDatUpdateDatetime(String datUpdateDatetime) {
		this.datUpdateDatetime = datUpdateDatetime;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CommentTab))
			return false;
		CommentTab castOther = (CommentTab) other;

		return ((this.getIntUserId() == castOther.getIntUserId()) || (this
				.getIntUserId() != null
				&& castOther.getIntUserId() != null && this.getIntUserId()
				.equals(castOther.getIntUserId())))
				&& ((this.getIntContentId() == castOther.getIntContentId()) || (this
						.getIntContentId() != null
						&& castOther.getIntContentId() != null && this
						.getIntContentId().equals(castOther.getIntContentId())))
				&& ((this.getIntCommentId() == castOther.getIntCommentId()) || (this
						.getIntCommentId() != null
						&& castOther.getIntCommentId() != null && this
						.getIntCommentId().equals(castOther.getIntCommentId())))
				&& ((this.getVarCommentName() == castOther.getVarCommentName()) || (this
						.getVarCommentName() != null
						&& castOther.getVarCommentName() != null && this
						.getVarCommentName().equals(
								castOther.getVarCommentName())))
				&& ((this.getVarCommentContent() == castOther
						.getVarCommentContent()) || (this
						.getVarCommentContent() != null
						&& castOther.getVarCommentContent() != null && this
						.getVarCommentContent().equals(
								castOther.getVarCommentContent())))
				&& ((this.getDatCommentDatetime() == castOther
						.getDatCommentDatetime()) || (this
						.getDatCommentDatetime() != null
						&& castOther.getDatCommentDatetime() != null && this
						.getDatCommentDatetime().equals(
								castOther.getDatCommentDatetime())))
				&& ((this.getIntDeleteSign() == castOther.getIntDeleteSign()) || (this
						.getIntDeleteSign() != null
						&& castOther.getIntDeleteSign() != null && this
						.getIntDeleteSign()
						.equals(castOther.getIntDeleteSign())))
				&& ((this.getDatUpdateDatetime() == castOther
						.getDatUpdateDatetime()) || (this
						.getDatUpdateDatetime() != null
						&& castOther.getDatUpdateDatetime() != null && this
						.getDatUpdateDatetime().equals(
								castOther.getDatUpdateDatetime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getIntUserId() == null ? 0 : this.getIntUserId().hashCode());
		result = 37
				* result
				+ (getIntContentId() == null ? 0 : this.getIntContentId()
						.hashCode());
		result = 37
				* result
				+ (getIntCommentId() == null ? 0 : this.getIntCommentId()
						.hashCode());
		result = 37
				* result
				+ (getVarCommentName() == null ? 0 : this.getVarCommentName()
						.hashCode());
		result = 37
				* result
				+ (getVarCommentContent() == null ? 0 : this
						.getVarCommentContent().hashCode());
		result = 37
				* result
				+ (getDatCommentDatetime() == null ? 0 : this
						.getDatCommentDatetime().hashCode());
		result = 37
				* result
				+ (getIntDeleteSign() == null ? 0 : this.getIntDeleteSign()
						.hashCode());
		result = 37
				* result
				+ (getDatUpdateDatetime() == null ? 0 : this
						.getDatUpdateDatetime().hashCode());
		return result;
	}

}